package No_1.Hero;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Hero {


    public void hero(String name,int hp){
        System.out.println("我是英雄类：我的信息如下：");
        System.out.print("名字:"+name+"，\t生命值："+hp+"\n\n");
    }
    public void weapon(String name,int cttcak){
        System.out.println("我是武器类：我的信息如下：");
        System.out.print("名字:"+name+"，\t攻击力："+cttcak+"\n\n");
    }

    public void monster(String name,int hp,String type){
        System.out.println("我是怪兽类：我的信息如下：");
        System.out.print("名字:"+name+"，\t生命值："+hp+",\t类型："+type+"\n\n");
    }


    public static void main(String[] args) {
        Hero datum = new Hero();

        datum.hero("李小侠",300);

        datum.weapon("死神镰刀",100);

        datum.monster("小龟",300,"潜水艇");
    }
}
